<?

function  ultimosTuits(){
    include "./lib/conexion.php";
    $result=mysql_query("SELECT * FROM tuits ORDER BY idTuit DESC LIMIT 0 , 10",
        $conexion);
     return $result;
    
    
}

function testUltimosTuits(){
$result = ultimosTuits();

$link="";
while($row=mysql_fetch_row($result)){
    $link ='<a href="http://twitter.com/#!/'.$row[1].'/statuses/'.$row[0].'">';
    $linkEnd='</a>';
    
  //echo $link;
  echo $link;
  echo "@".$row[1]." > ".$linkEnd.$row[2]."<br/>";
}
}
//include "cerrar_conexion.php";
?>